Dynamic_cache_driver
└─Writeback_cache_driver
public abstract class Writeback_cache_driver
extends Dynamic_cache_driver
| Field Summary | |
|---|---|
| protected mixed | Keys that are to be removed |
| protected array | Values for delayed writeback to persistent cache |
| Method Summary | |
|---|---|
| abstract void | flush() Writes modified entries back to persistent storage |
| void | remove(string id, string realm) Removes cache image of the object from the database |
| abstract bool | remove_now(string id, string realm) Removes item immediately, avoiding writeback. |
| bool | store(string id, mixed data, string realm, int ttl) Stores data as object image in cache |
| abstract bool | store_now(string id, mixed data, string realm, int ttl) Writes item to cache immediately, avoiding writeback. |
| Methods inherited from API - Cache\Dynamic_cache_driver | |
|---|---|
| store | |
protected mixed $removed_data = array()
protected array $writeback_data = array()
public abstract void flush()
public void remove(string id, string realm)
public abstract bool remove_now(string id, string realm)
public bool store(string id, mixed data, string realm, int ttl)
public abstract bool store_now(string id, mixed data, string realm, int ttl)